import { legacy_createStore as createStore, applyMiddleware } from 'redux'
// 导入reducer包
import reducer from './reducer'
// 引入thunk包
import thunk from 'redux-thunk'
// 引入redux调试工具的拓展
import { composeWithDevTools } from 'redux-devtools-extension'
// 在创建仓库的时候进行使用
const store = createStore(
  reducer,
  composeWithDevTools(applyMiddleware(thunk))
)

export default store